package com.dy.service;

import com.dy.bean.Car;
import com.dy.dao.CarDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @projectName: day0611
 * @package: com.dy.service
 * @className: CarServiceImpl
 * @author: DuanYu
 * @description: TODO
 * @date: 2024/6/11 11:05
 * @version: 1.0
 */
@Service

public class CarServiceImpl implements CarService {
    @Autowired
    CarDao carDao;
    @Override
    public List<Car> showCar(String name, String carno) {
        return carDao.showCar(name,carno);
    }

    @Override
    public int addCar(Car car) {
        return carDao.addCar(car);
    }

    @Override
    public int del(Integer id) {
        return carDao.del(id);
    }

    @Override
    public int update(Car car) {
        return carDao.update(car);
    }

    @Override
    public int delAll(Integer[] ids) {
        return carDao.delAll(ids);
    }
}
